import cgi
import uuid
from google.appengine.api import urlfetch

#header = 'Content-Type: text/html; charset=gb2312\n\n'
header = 'Content-Type: text/html'

html = '''
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
    <title> UClickr </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <script type="text/javascript" src="/ucr.js" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
 </head>

 <body>
 </body>
</html>
'''

print 'Content-Type: text/html'
#print header
print html
#print '<b>' + uuid.uuid4() + '</b>'

#url = "http://www.baidu.com/"
#result = urlfetch.fetch(url)
#if (result.status_code == 200):
#    print result.content
